/**
 * Message 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/message/style';

export const messageThemeConfig: Partial<ComponentToken> = {
  zIndexPopup: 1010,
  contentBg: '#ffffff',
  contentPadding: '9px 12px' as any,
};

export const getMessageTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...messageThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as MessageComponentToken } from 'antd/es/message/style';

